<?php

namespace app\index\controller;

use think\Controller;
use think\Db;

class Mail extends Controller
{
    public function index($id)
    {
        $info = Db::name('inner_mail')->where('uid',$id)->where('status',0)->select();
        $num = Db::name('inner_mail')->where('uid',$id)->where('status',0)->count('status',0);
        return view('mail/index',['num'=>$num,'info'=>$info]);
    }
}
